Constructs a DbGuid from an array of 16 (or more) bytes beginning at the offset supplied.
Syntax
Example
Library/Library.Test/TestDbGuid.cs
C# | Copy Code |
---|
DbGuid testA = DbGuid.NewGuid();
byte[] bytes = new byte[1024];
testA.ToByteArray(bytes, 512);
DbGuid testB = new DbGuid(bytes, 512);
Assert.AreEqual(testA, testB); |
VB.NET | Copy Code |
---|
Dim testA As DbGuid = DbGuid.NewGuid()
Dim bytes As Byte() = New Byte(1024) {}
testA.ToByteArray(bytes, 512)
Dim testB As New DbGuid(bytes, 512)
Assert.AreEqual(testA, testB) |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also